home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2108 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: gate.net!news-adm
  2. From: kwaddell@gate.net (Karl Waddell)
  3. Newsgroups: comp.lang.c
  4. Subject: Help with Network Code in 'C'
  5. Date: 19 Jan 1996 04:20:50 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4dn672$1of0@news.gate.net>
  8. NNTP-Posting-Host: dffl7-36.gate.net
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.7
  12.  
  13. I have written a client/server app on an HP-UX box using the O'Reilly IPC code 
  14. as a template. The code works great while both parts, meaning the client and 
  15. server code reside on the same box. When I moved the server code to another box 
  16. in another subdomain, I recveive the "connection refused" message when trying 
  17. to establish a connection. I have started xdb and debuged the sever code on the 
  18. new box and it looks fine. I have not changed or recompiled the code on the new 
  19. box,(I would not think I would have to recompile). The server code does a 
  20. gethost, gethostbyname, builds the address of the server, binds, does the 
  21. listen and wait for the accept. The client code calls gethostbyname using a 
  22. string with the machine to connect to, creates the socket, build the address 
  23. structure, and trys to connect. If while waiting in the debugger on the server 
  24. side in an accept and I telnet over using the port number of my server I can 
  25. see the code accept the connection, but it will not do the same for my client 
  26. code. I can ping the site without any problem, it is on the same subnet. Has 
  27. anyone run into this type of problem?
  28.  
  29.  
  30. Thanks in advance
  31.  
  32.  
  33. Karl Waddell
  34.  
  35.